﻿#region itdc

/************************************************************************
*Copyright(C) 2015 by qsgy
 *All rights reserved. 
 *FileName:     $safeitemname$
 *Author:       oyh
 *Version:      
 *UnityVersion：
 *Date:   $time$      
 *Description:    
 *History: 
************************************************************************/
#endregion
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Activator : NextRunner
{

    public GameObject[] actives;
    public MonoBehaviour[] enables;


    //启用或关闭
    public virtual void SetAct(bool act)
    {
            foreach (var i in actives)
            {
                if (i == null) continue;
                i.SetActive(act);
            }
            foreach (var i in enables)
            {
                i.enabled = act;
            }
    }

}
